<fieldset class="solid">
	<legend>#((borrow == null||borrow.id == null)?'创建借书':'修改借书')</legend>
	<input type="hidden" name="borrow.id" value="#(borrow.id??)" />
	<div>
		<label>学生:</label>
		<select name="borrow.studentid">
					<option value="">请选择需要借书的学生</option>
			#for(x : students)
				#if(borrow.studentid??!=null && x.studentid == borrow.studentid)
					<option value="#(x.studentid)" selected="selected">#(x.studentname)</option>
				#else
					<option value="#(x.studentid)">#(x.studentname)</option>
				#end
			#end
		</select>#(studentidMsg)
		<!--<input type="text" name="borrow.studentid" value="#(borrow.studentid??)" />-->
	</div>
	<!--<div>
		<label>图书索引号:</label>
		<input type="text" name="borrow.bookid" value="#(borrow.bookid??)" />#(bookidMsg)
	</div>
	<div>
		<label>图书副本编号:</label>
		<input type="text" name="borrow.bookcopyid" value="#(borrow.bookcopyid??)" />#(bookcopyidMsg)
	</div>-->
	<div>
		<label>图书:</label>
		<select name="borrow.bookid">
			    	<option value="">请选择相应图书</option>
			#for(x : books)
				#if(borrow.bookid??!=null && x.bookid == borrow.bookid)
					<option value="#(x.bookid)" selected="selected">#(x.bookname)</option>
				#else
					<option value="#(x.bookid)">#(x.bookname)</option>
				#end
			#end
		</select>#(bookidMsg)
	</div>
	<!--<div>
		<label>借书时间:</label>
		<input type="text" name="borrow.borrowtime" value="#(borrow.borrowtime??)" />#(borrowtimeMsg)
	</div>-->
	<div>
		<label>借阅天数:</label>
		<input type="text" name="borrow.days" value="#(borrow.days??)" />#(daysMsg)
	</div>
	<div>
		<label>&nbsp;</label>
		<input value="#((borrow == null||borrow.id == null)?'创建':'修改')" type="submit">
	</div>
</fieldset>